package org.example.platform.design.zhuangtai;

public class WriteProject {
    int hour = 0;
    boolean workFinished = false;

    public void writePro() {
        if (hour < 12) {
            System.out.println("当前时间" + hour + "工作精神百倍");
        } else if (hour < 13) {
            System.out.println("当前时间" + hour + "犯困努力");
        } else if (hour < 17) {
            System.out.println("当前时间" + hour + "状态不错，继续努力");
        } else {
            if (workFinished) {
                System.out.println("下班");
            } else {
                if (hour < 21) {
                    System.out.println("当前时间" + hour + "加班疲惫");

                } else {
                    System.out.println("当前时间"+hour+"睡着了");
                }
            }
        }
    }
}
